//
//  UIApplicationViewController.swift
//  Example
//
//  Created by T AO on 2022/2/15.
//

import UIKit
import RxCocoa
import RxSwift

class UIApplicationViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let switchBtn = UISwitch(frame: CGRect(x: 100, y: 100, width: 50, height: 50))
        view.addSubview(switchBtn)
        
        switchBtn.rx.value
            .bind(to: UIApplication.shared.rx.isNetworkActivityIndicatorVisible)
            .disposed(by: disposeBag)
    }
}
